<?php get_header(); ?>
<?php $postFormat = get_post_format(); 
      $category =  get_the_category();
      $catId = $category[0]->term_id;
?>
<!-- mainbodyColumn -->
<div id="mainbodyColumn">
  <div class="container"><!-- container-->
    <div class="row"><!-- row-->
      <?php if (have_posts()) { ?>
        <!-- for gallery format type  -->
        <?php if ($postFormat == 'gallery'): ?>
          <div class="post-gallery page-content" id="mainbody">
            <div class="container">
              <?php get_template_part('content', $postFormat); ?>
            </div>
          </div>
        <?php elseif ($catId == '10' ||$catid = '4') : //news ?>
        <div class="page-content">
          <div class="container">
            <h2 class="page-title"><?php echo $category[0]->name; ?></h2>
            <div class="col-xs-9" id="mainbody">
              <?php get_template_part('content', 'category-news'); ?>
            </div>
            <?php get_sidebar(); ?>
          </div>
        </div>
        <?php else: ?>
          <div class="col-xs-9" id="mainbody">
            <?php get_template_part('content', 'single'); ?>
            <div class="widget">
              <h2 class="widget-title">Tin liên quan</h2>
              <div class="widget-content">
                <ul>
                  <li><a href="#">Tin 2</a></li>
                  <li><a href="#">Tin 3</a></li>
                  <li><a href="#">Tin 4</a></li>
                  <li><a href="#">Tin 5</a></li>
                  <li><a href="#">Tin 6</a></li>
                </ul>
              </div>
            </div>
          </div>
          <?php get_sidebar(); ?>
        <?php endif; ?>
      <?php } ?>
    </div><!--/ row-->
  </div><!--/ container-->  
</div>
<!--/ mainbodyColumn -->

<?php get_footer(); ?>